﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TechnicalAnalysisEngine.Tests
{
    public class TestHelpers
    {
        public static bool EqualsWithTolerance(double resultValue, double expectedValue, int percentTolerance)
        {
            return Math.Abs(resultValue / expectedValue - 1) * 100 < percentTolerance;
        }
    }
}
